-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add handle for resolveExternalUri #5624
Conversation
Might be easiest to force-apply it then resolve the conflicts and refresh it! It could be a conflict with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work!
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5624 +/- ##
=======================================
Coverage 72.61% 72.61%
=======================================
Files 30 30
Lines 1680 1680
Branches 368 368
=======================================
Hits 1220 1220
Misses 397 397
Partials 63 63 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! Do you want an approval now to merge or are you going to add the domain-based proxy in this same PR so I should approve after that is done?
I'll work on that here then mark PR ready when all is said and done. Thanks for the early review! |
39be51a
to
9681169
Compare
It appears the display language e2e test is failing. I'm going to see if I can reproduce locally. |
"__metadata": { | ||
"id": "47e020a1-33db-4cc0-a1b4-42f97781749a", | ||
"publisherDisplayName": "MS-CEINTL", | ||
"publisherId": "0b0882c3-aee3-4d7c-b5f9-872f9be0a115", | ||
"isPreReleaseVersion": false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed VS Code added this after running the test so I decided to commit it.
test/e2e/models/CodeServer.ts
Outdated
@@ -327,7 +327,7 @@ export class CodeServerPage { | |||
const selector = "text=test extension loaded" | |||
this.codeServer.logger.debug("Waiting for test extension to load...") | |||
|
|||
await this.page.waitForSelector(selector) | |||
await this.page.waitForSelector(selector, { timeout: 5000 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gonna drop this change
@@ -8,6 +8,7 @@ import path from "path" | |||
// yarn test:e2e --workers 1 # Run with one worker | |||
// yarn test:e2e --project Chromium # Only run on Chromium | |||
// yarn test:e2e --grep login # Run tests matching "login" | |||
// PWDEBUG=1 yarn test:e2e # Run Playwright inspector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saves time from having to look this up each time 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100% lol same reason I added the other comments I am always forgetting the flags
d7ead89
to
fb7bcb8
Compare
@code-asher ready for another review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done! I only have a comment about the added metadata.
test/e2e/extensions/ms-ceintl.vscode-language-pack-es-1.70.0/package.json
Show resolved
Hide resolved
I found there's a conflict between this feature and url displayed in open external uri dialog. For the next time if you open a different uri with the same domain The uri displayed here is not correct Before there's no resolvers registered by default so external uri is not resolved but after this feature added, cache will take effect Hope there's a solutaion for this. Thank you! |
This PR fixes
asExternalUri
to use code-server's built-in proxy orVSCODE_PROXY_URI
if it's been set.Todos
VSCODE_PROXY_URI
VSCODE_PROXY_URI
Fixes #1936